Skip to content

verify upstream certs & reject unverified#158

Merged
abhisek merged 2 commits intomainfrom
fix/verify-upstream-certs
Feb 12, 2026
Merged

verify upstream certs & reject unverified#158
abhisek merged 2 commits intomainfrom
fix/verify-upstream-certs

Conversation

@Sahilb315
Copy link
Contributor

@Sahilb315 Sahilb315 commented Feb 12, 2026

Copilot AI review requested due to automatic review settings February 12, 2026 11:40
@safedep
Copy link

safedep bot commented Feb 12, 2026

SafeDep Report Summary

Green Malicious Packages Badge Green Vulnerable Packages Badge Green Risky License Badge

No dependency changes detected. Nothing to scan.

This report is generated by SafeDep Github App

@codecov-commenter
Copy link

codecov-commenter commented Feb 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 39.37%. Comparing base (5b0517f) to head (a3ca03f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #158      +/-   ##
==========================================
+ Coverage   39.03%   39.37%   +0.34%     
==========================================
  Files          86       86              
  Lines        5336     5348      +12     
==========================================
+ Hits         2083     2106      +23     
+ Misses       3065     3046      -19     
- Partials      188      196       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 4 additional findings.

Open in Devin Review

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR hardens the proxy’s upstream TLS behavior by explicitly configuring the upstream http.Transport to enforce certificate verification and a minimum TLS version, and adds tests to prevent regressions.

Changes:

  • Set goproxy.ProxyHttpServer.Tr to a custom upstream transport that enforces InsecureSkipVerify=false and MinVersion >= TLS1.2.
  • Add unit tests asserting the upstream transport is secured and that untrusted upstream certs are rejected by default.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
proxy/proxy.go Introduces newUpstreamTransport and wires it into NewProxyServer to enforce secure upstream TLS settings.
proxy/proxy_test.go Adds tests validating upstream TLS config and failure behavior against an untrusted TLS server.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@abhisek abhisek merged commit ec6cdf5 into main Feb 12, 2026
14 checks passed
@abhisek abhisek deleted the fix/verify-upstream-certs branch February 12, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants